<template>
  <view class="oa-content">
    <!-- 顶部自定义导航 -->
    <tn-nav-bar fixed customBack :bottomShadow="false" backgroundColor="#FFFFFF">
      <view slot="back" class='tn-custom-nav-bar__back'
        @click="goBack">
        <text class='icon tn-icon-left-arrow'></text>
      </view>
      <view class="tn-flex tn-flex-col-center tn-flex-row-center ">
        <text class="tn-text-bold tn-text-xl tn-color-black">添加同事</text>
      </view>
    </tn-nav-bar>

    <view class="tn-search-fixed tn-bg-white">
      <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
        
        <view class="justify-content-item align-content-item" style="width: 100vw;">
          <view class="tn-flex tn-flex-col-center" style="border: 1rpx solid #00D05E;border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 90%;">
            <text class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
            <input class="justify-content-item" placeholder="请输入同事Uid码" name="input" placeholder-style="color:#AAAAAA" style="width: 90%;"></input>
          </view>
        </view>
        
        <view class="align-content-item">
          <view class="justify-content-item tn-text-center">
            <tn-button backgroundColor="#00D05E" shape="round" padding="20rpx 20rpx" width="150rpx" @tap="">
              <text class="tn-color-white">搜 索</text>
            </tn-button>
    
          </view>
        </view>
      </view>
      
    </view>
    
    <!-- 页面内容 -->
    <view class="" :style="{paddingTop: vuex_custom_bar_height + 80 +'px'}">
      
      
      <view class="tn-flex tn-flex-row-between tn-flex-col-center" @click="tn('')" style="background-color: #FFFFFF;border-radius: 24rpx;margin: 0 30rpx 30rpx 30rpx;padding: 10rpx 0 10rpx 30rpx;position: relative;z-index: 9999;">
        <view class="justify-content-item tn-flex tn-flex-col-center">
          <view class="justify-content-item icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white" style="background-color: #00B9FE;">
            <view class="tn-icon-scan"></view>
          </view>
          <view class="justify-content-item tn-margin-sm">
            <view class="tn-text-bold tn-text-lg">扫一扫</view>
            <view class="tn-text-sm tn-color-gray tn-padding-top-xs">前往扫描</view>
          </view>
        </view>
        
        <view class="justify-content-item tn-margin-sm tn-text-lg">
          <text class="tn-icon-right tn-color-gray"></text>
        </view>
      </view>
      
      <view class="tn-flex tn-flex-row-between tn-flex-col-center" @click="tn('')" style="background-color: #FFFFFF;border-radius: 24rpx;margin: 0 30rpx 30rpx 30rpx;padding: 10rpx 0 10rpx 30rpx;position: relative;z-index: 9999;">
        <view class="justify-content-item tn-flex tn-flex-col-center">
          <view class="justify-content-item icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white" style="background-color: #00C8B0;">
            <view class="tn-icon-circle-more"></view>
          </view>
          <view class="justify-content-item tn-margin-sm">
            <view class="tn-text-bold tn-text-lg">面对面添加</view>
            <view class="tn-text-sm tn-color-gray tn-padding-top-xs">多人互加</view>
          </view>
        </view>
        
        <view class="justify-content-item tn-margin-sm tn-text-lg">
          <text class="tn-icon-right tn-color-gray"></text>
        </view>
      </view>
      
      <view class="tn-flex tn-flex-row-between tn-flex-col-center" @click="tn('')" style="background-color: #FFFFFF;border-radius: 24rpx;margin: 0 30rpx 30rpx 30rpx;padding: 10rpx 0 10rpx 30rpx;position: relative;z-index: 9999;">
        <view class="justify-content-item tn-flex tn-flex-col-center">
          <view class="justify-content-item icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white" style="background-color: #1485EE;">
            <view class="tn-icon-qr-code"></view>
          </view>
          <view class="justify-content-item tn-margin-sm">
            <view class="tn-text-bold tn-text-lg">我的二维码</view>
            <view class="tn-text-sm tn-color-gray tn-padding-top-xs">前往查看</view>
          </view>
        </view>
        
        <view class="justify-content-item tn-margin-sm tn-text-lg">
          <text class="tn-icon-right tn-color-gray"></text>
        </view>
      </view>
      
      
      
      <!-- 搜索好友为空-->
      <!-- <view class="" style="padding: 10vh 20rpx;">
        <view class="tn-text-center" style="font-size: 160rpx;">
          <text class="tn-icon-wea-wind tn-color-gray--disabled"></text>
        </view>
        <view class="tn-color-gray tn-text-center tn-text-lg tn-padding-top-sm">该用户不存在</view>
      </view>   -->
      
      
      
    </view>

  </view>

</template>

<script>
  import template_page_mixin from '@/libs/mixin/template_page_mixin.js'
  export default {
    name: 'TemplateFriend',
    mixins: [template_page_mixin],
    data(){
      return {
      }
    },
    methods: {
      // 跳转
      tn(e) {
      	uni.navigateTo({
      		url: e,
      	});
      },
    }
  }
</script>

<style lang="scss" scoped>
  /* 胶囊*/
  .tn-custom-nav-bar__back {
    z-index: 9999;
    width: 60%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 1000rpx;
    border: 1rpx solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-size: 32rpx;
    
    .icon {
      display: block;
      flex: 1;
      margin: auto;
      text-align: center;
    }
    
  }
  .oa-content{
    max-width: 640px;
    margin: 0 auto;
    background-color: #F8F7F8;
    min-height: 100vh;
    padding-bottom: 60rpx;
    padding-bottom: calc(80rpx + env(safe-area-inset-bottom) / 2);
    padding-bottom: calc(80rpx + constant(safe-area-inset-bottom));
  }
  
  .tn-search-fixed{
    max-width: 640px;
    margin: 0 auto;
    position: fixed;
    top: 0rpx;
    width: 100%;
    transition: all 0.25s ease-out;
    z-index: 999;
  }
  
  /* 用户头像 start */
  .logo-image {
    width: 90rpx;
    height: 90rpx;
    position: relative;
  }
  
  .logo-pic {
    background-size: cover;
    background-repeat: no-repeat;
    // background-attachment:fixed;
    background-position: center;
    // border: 1rpx solid rgba(255,255,255,0.05);
    // box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
    border-radius: 100rpx;
    overflow: hidden;
    // background-color: #FFFFFF;
  }
  
  /* 图标容器15 start */
  .icon15 {
    &__item {
      width: 30%;
      background-color: #FFFFFF;
      padding: 30rpx;
      margin: 20rpx 10rpx;
      transform: scale(1);
      transition: transform 0.3s linear;
      transform-origin: center center;
      
      &--icon {
        width: 80rpx;
        height: 80rpx;
        font-size: 50rpx;
        border-radius: 50%;
        position: relative;
        z-index: 1;
        
        &::after {
          content: " ";
          position: absolute;
          z-index: -1;
          width: 100%;
          height: 100%;
          left: 0;
          bottom: 0;
          border-radius: inherit;
          opacity: 1;
          transform: scale(1, 1);
          background-size: 100% 100%;
  
            
        }
      }
    }
  }
</style>
